/*
 * @Author: zxc
 * @Date: 2020-11-29 18:32:37
 * @LastEditTime: 2020-11-29 18:33:13
 * @LastEditors: zxc
 * @Description:
 */
import { Table, Column, Model, DataType } from "sequelize-typescript"

@Table({ modelName: "users" })
export default class User extends Model<User> {
  @Column({
    primaryKey: true,
    autoIncrement: true,
    type: DataType.INTEGER
  })
  public id: number

  @Column(DataType.CHAR)
  public name: string
}
